﻿@model ElectrosLtd.Models.RatingsModel

@{
    ViewBag.Title = "RateProduct";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Rate this product?</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>

    <h3>Rate this Product?</h3>

    <div class="editor-field">
    @Html.HiddenFor(model=> model.ProductID)
            Your Rating: @Html.DropDownListFor(model => model.RatingID , Model.RatingList)     
        </div>

        <p>
            <input type="submit" value="Rate Product" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to Order Details", "Order Details")
</div>
